第 11 步:让我们将user_answer返回到ask_for_password() !我们的while 循环需要它。

  • 在逻辑中,单击并将Return Statement拖入get_user_input()
  • 然后,将变量从my_var更改为response
  • 现在我们的ask_for_password函数将可以访问用户的响应!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)